package cn.hwh.springframework.context;

import cn.hwh.springframework.beans.BeansException;

/**
 * @author wenhao hu
 * @title: ConfigurableApplicationContext
 * @projectName mini-spring
 * @description: TODO
 * @date 2022/1/2621:01
 */
public interface ConfigurableApplicationContext extends ApplicationContext{

     /**
      * @description: 刷新容器
      * @author wenhao hu
      * @date 2022/1/26 21:02
     */
    void refresh() throws BeansException;

     /**
      * @description: 注册虚拟机钩子方法
      * @author wenhao hu
      * @date 2022/2/14 15:44
     */
    void registerShutdownHook();

     /**
      * @description: 手动关闭方法
      * @author wenhao hu
      * @date 2022/2/14 15:44
     */
    void close();
}
